package com.didi.gulimall.common.utils;

import java.util.Random;

/**
 * @author 10626
 */
public class ValidateCode {
    public static String createData() {
        return createData(6);
    }


    public static String createData(int length) {
        StringBuilder sb = new StringBuilder();
        Random rand = new Random();
        for (int i = 0; i < length; i++) {
            sb.append(rand.nextInt(10));
        }
        return sb.toString();
    }
}
